fix bug 11027: Add parameter to MW:Randompage-nopages so that user can see the namespace.
authorMarco Schuster <harddisk@users.mediawiki.org>
Mon, 10 Nov 2008 19:59:36 +0000 (19:59 +0000)
committerMarco Schuster <harddisk@users.mediawiki.org>
Mon, 10 Nov 2008 19:59:36 +0000 (19:59 +0000)
RELEASE-NOTES
includes/specials/SpecialRandompage.php

index b45c9c8..028c3ec 100644 (file)
@@ -201,6 +201,7 @@ The following extensions are migrated into MediaWiki 1.14:
 * New 'AbortDiffCache' hook can be used to cancel the caching of a diff
 * (bug 15835) Added Content-Style-Type meta tag
 * Add class="disambiguationpage" to <body> tag for disambiguations
+* (bug 11027)  Add parameter to MW:Randompage-nopages so that user can see the namespace.
 
 === Bug fixes in 1.14 ===
 
index 0e7ada1..f3f6dec 100644 (file)
@@ -39,7 +39,7 @@ class RandomPage extends SpecialPage {
 
                if( is_null( $title ) ) {
                        $this->setHeaders();
-                       $wgOut->addWikiMsg( strtolower( $this->mName ) . '-nopages' );
+                       $wgOut->addWikiMsg( strtolower( $this->mName ) . '-nopages',  $wgContLang->getNsText( $this->namespace ) );
                        return;
                }